package com.enba.mall.core.orders.order.resp;

import io.swagger.annotations.ApiModel;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
import lombok.Data;

@ApiModel("我的订单-出参")
@Data
public class MyOrderResp {
  // 订单ID
  private Long id;
  // 创建时间
  private LocalDateTime date;
  // 订单状态
  private String status;
  // 订单金额
  private BigDecimal totalAmount;
  // 订单商品项
  private List<SkuResp> products;

  @Data
  public static class SkuResp {
    // skuId
    private Long id;
    private String title;
    private String spec;
    private BigDecimal price;
    private Integer count;
    private String image;
  }
}
